Exception Handling Best Practices

The following types of run-time exceptions may occur:

Caught Exceptions: Exceptions that are caught (and handled) using the try-catch block mechanism. A try block is the block of code in which exceptions occur. A catch block catches and handles try block exceptions.

When you invoke a function from the library, and the function has an internal ‘try-catch’ block defined to catch the exceptions thrown by the function, the exception is caught at code level and this does not interrupt the execution of any subsequent actions/functions in rules, workflow steps, workflow transitions, event handlers, functions (in business entities).

Uncaught Exceptions: Exceptions that are thrown by a function and are not caught using the try-catch block mechanism. In this case, as the exception is not caught, any instructions after the function invocation will not be executed.